package com.studentexam.student.dao;

import com.studentexam.student.model.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {

    /*外键查询方法*/
    int getPersonCount(Integer personid);

    /*增删改查*/
    int insertStudent(Student student);

//    int getStudentnameCount(String rolename);

    int updateStudent(Student student);

    int delStudent(Integer studentid);

    List<Student> getByStudentid(Integer studentid);

    List<Student> getAllStudent(Student student);
}
